/**
 * date:2021/02/27
 * author:LeapMary
 * version:2.0
 * description:js常用扩展
 */
layui.define(["element", "layer", "jquery"], function (exports) {

    var element = layui.element,
        layer = layui.layer,
        $ = layui.$;

    var stringJs = {
        /**
         * 判断一个字符串不能为空
         */
        notEmpty: function ($string,$info) {
            if($string == undefined || $string == ''){
                layer.msg($info+"不能为空");
                return true;
            }
        },

    };

    exports("stringJs", stringJs);
});
